
Vue.component2('a_1_0_0_0_0', {  
    template: `
        <div class="a_1_0_0_0_0_dir"ref="div" :key="refresh">
            <slot></slot>
        </div>
`,  
  data() {
      return {
        now_select:"-1",
        refresh:"1",/*用来刷新组件*/
        data:{
        height:'35px',
            //目录结构:
            /*
           menus: {
                'menu_id':{//目录id
                    "menu_name":"目录名称",
                    "menu_fast":"快捷键",
                    "item_fast":[],//快速搜索目录
                    "item_dct":{//目录中的选项
                        "item_id":{//选项id
                        "item_fast":"快捷键",
                            "item_name":"选项名称",
                            "callback":"选项回调函数"
                        }

                    }
                }
            },
            */
            menus: {

        },
        fast_menu:[],//存放menus ids的数组 ids被转为整数 按照sort顺序排列
        show_flag:{}
        }
         
      };
  },
  mounted:function(){
    //c
    _this.change_height=function(){
       _this.$refs.div.style.height = _this.data.height;
    }
    //当页面尺寸修改,更改当前高度
    _this.data.change_size=function(obj){
        // console.log("!!!!!!!!!!!!!!!!!!",obj)
        let height=obj.height;
        _this.data.height=(height-35)+'px';
        // console.log("!!!!!!!!!!!!!!!!!!","now_height:", _this.data.height)
        ttime3(_this,'div',_this.change_height)
    }
       
  }
} 
);

